package com.aratek.salary;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author Yvan Jiang
 * @version 0.0.1
 * @Title Application
 * @note 程序运行入口
 * @note Copyright 2016 by Aratek . All rights reserved
 * @time 2017/7/26
 **/
@SpringBootApplication
@EnableAsync
@EnableConfigurationProperties
public class Application extends SpringBootServletInitializer {
    public static void main(String[] args){
        SpringApplication.run(Application.class, args);
    }
    
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(Application.class);
    }
}
